home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archives / Replacements / cpdist_0_17.lha / cpdist-0.17 / source / DMakefile < prev    next >
Makefile  |  1994-06-03  |  2KB  |  67 lines

  1. # CPDIST DMakefile for Dillon's DICE C Compiler om the Commodore AMIGA
  2. #
  3. # (c)Copyright 1992-93 by Tobias Ferber.
  4. #
  5. # This file is part of CPDIST.
  6. #
  7. # CPDIST is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published
  9. # by the Free Software Foundation; either version 1 of the License, or
  10. # (at your option) any later version.
  11. #
  12. # CPDIST is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with CPDIST; see the file COPYING.  If not, write to
  19. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. CC=dcc
  22.  
  23. # -DNO_GETKEY   use gets() instead of getkey()
  24. # -DNO_PERROR   don't use perror()
  25.  
  26. CFLAGS= -1.3 -s
  27.  
  28. objs= main.o args.o msg.o cpdist.o keys.o getkey.o filecopy.o
  29. dist= cpdist-0.17
  30.  
  31. all: cpdist
  32.  
  33. cpdist: $(objs)
  34.     $(CC) $(CFLAGS) -o%(left) %(right)
  35.  
  36. main.o: main.c
  37.     $(CC) $(CFLAGS) -c -o%(left) %(right)
  38.  
  39. args.o: args.c
  40.     $(CC) $(CFLAGS) -c -o%(left) %(right)
  41.  
  42. msg.o: msg.c
  43.     $(CC) $(CFLAGS) -c -o%(left) %(right)
  44.  
  45. keys.o: keys.c
  46.     $(CC) $(CFLAGS) -c -o%(left) %(right)
  47.  
  48. cpdist.o: cpdist.c
  49.     $(CC) $(CFLAGS) -c -o%(left) %(right)
  50.  
  51. getkey.o: getkey.c
  52.     $(CC) $(CFLAGS) -c -o%(left) %(right)
  53.  
  54. filecopy.o: filecopy.c
  55.     $(CC) $(CFLAGS) -c -o%(left) %(right)
  56.  
  57.  
  58. clean:
  59.     delete quiet #?.o cpdist $(dist).tar#?
  60.  
  61. dist:
  62.     makedir $(dist)
  63.     cpdist -f Distfile $(dist)
  64.     tar cf $(dist).tar $(dist)
  65.     gzip -9 $(dist).tar
  66.     delete all quiet $(dist)
  67.